# __author__ = 'zhoubing'
# -*- coding: utf-8 -*-

from django import forms


class LoginForm(forms.Form):
    username = forms.CharField(
        max_length=15, required=True, label="用户名",
        widget=forms.TextInput(
            attrs={
                'class': 'layui-input',
                'placeholder': '请输入用户名'
            }
        )
    )
    password = forms.CharField(
        max_length=15, label="用户密码", required=True,
        widget=forms.PasswordInput(
            attrs={
                'autocomplete': False,
                'class': 'layui-input',
                'placeholder': '请输入密码'
            }
        )
    )
